Triangularity | The Triangularity Esolang | Interpreter library
kandi X-RAY | Triangularity Summary
kandi X-RAY | Triangularity Summary
This is a recreational programming language, very minimalistic, that doesn't yet have any kind of loops, and which is only meant to solve easy tasks. Fun fact: Valid Triangularity programs must have the character count listed in OEIS A056220 (except for -1), otherwise you are probably doing something wrong. The documentation is in the wiki. If you have questions, encounter problems, spot bugs or want to request features, please ping me (@Mr.Xcoder) in its dedicated chatroom (SE chat).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse the given code .
- Format QRity code .
Triangularity Key Features
Triangularity Examples and Code Snippets
Community Discussions
Trending Discussions on Triangularity
QUESTION
Up to now I solved (regular) triangular systems always using \
(= mldivide
). But this function always first checks whether the matrix is triangular before using an appropriate solver. A naive checking of the triangularity already has about the same order cost as the solving itself. (but therefore increasing the runtime only by a constant factor, so it should usually not matter that much) I wondered:
Is there a built in solver that you can use if you already know that the matrix is triangular that avoids this check?
...ANSWER
Answered 2017-May-22 at 20:14You can use linsolve
, which has options for various matrix types including triangular matrices.
https://www.mathworks.com/help/matlab/ref/linsolve.html
I tried by using Mathworks' example, both were too fast to matter. When scaled up to 5000x3000, linsolve was much faster. And also useless, as resulting matrices were rank deficient, and the method produced completely wrong results full of NaN. Ordinary division worked as expected - there were some errors, but most results were 1.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Triangularity
You can use Triangularity like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page