You must pass to GaussianElimination Single arrays, not Integers arrays
In addition, GaussianElimination is not a function but a subroutine.
Search found 12245 matches
- Nov 24, 2024 20:58
- Forum: Beginners
- Topic: Array question
- Replies: 1
- Views: 103
- Nov 18, 2024 9:54
- Forum: Beginners
- Topic: Wstring Test (Error?)
- Replies: 2
- Views: 344
Re: Wstring Test (Error?)
No errors or bugs: A Zstring character is always encoded on one byte (ubyte) => 'sizeof(zstring)' = 1 For Wstring character, it depends on platform: On Windows, a Wstring character is encoded on two bytes (ushort) => 'sizeof(wstring)' = 2 On Linux, a Wstring character is encoded on four bytes (ulong...
- Nov 18, 2024 9:00
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 306
- Views: 48069
Re: Freebasic 1.20.0 Development
REDIM syntax bug in working version 1.20, for a procedure pointer array member and its access via pointer Only for a procedure pointer array member and the REDIM instruction, accessing the array name via an instance pointer does not work anymore since the working-version 1.20 ("syntax error&qu...
- Nov 17, 2024 17:07
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 306
- Views: 48069
Re: Freebasic 1.20.0 Development
Thanks, but why does this work with all array types, except specifically procedure pointer arrays (otherwise it works with string pointer arrays for example) ?
- Nov 16, 2024 21:24
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 306
- Views: 48069
Re: Freebasic 1.20.0 Development
REDIM syntax bug in working version 1.20, for a procedure pointer array member and its access via pointer Only for a procedure pointer array member and the REDIM instruction, accessing the array name via an instance pointer does not work anymore since the working-version 1.20 ("syntax error&qu...
- Nov 15, 2024 20:54
- Forum: Beginners
- Topic: ThreadCreate
- Replies: 4
- Views: 378
- Nov 14, 2024 8:32
- Forum: Beginners
- Topic: ThreadCreate
- Replies: 4
- Views: 378
Re: ThreadCreate
Improved version of the above in order to additionally remove all flickering by using double buffering: (screen locking and page flipping are not usable here) Sub thread(Byval p As Any Ptr) Screenset 1, 0 ' to avoid flickering by double buffering Do Static As String t Draw String (0, 16), t, 0 t = ...
- Nov 13, 2024 21:54
- Forum: Beginners
- Topic: ThreadCreate
- Replies: 4
- Views: 378
Re: ThreadCreate
Small example proving multi-threading capacity: (in a non multi-threading code, we cannot do anything else while waiting for the "Line Input" instruction to return) Sub thread(Byval p As Any Ptr) Do Static As String t Draw String (0, 16), t, 0 t = Time Draw String (0, 16), t Do If *Cast(S...
- Nov 13, 2024 15:23
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dynamic ArrayList (with circular doubly linked list under the hood)
- Replies: 103
- Views: 20191
Re: Dynamic ArrayList (with circular doubly linked list under the hood)
Dynamic ArrayList: Pre-allocating memory for nodes ..... The user can set the number of pre-allocated nodes using an optional parameter at construction time. ..... Improvement: about 30% at maximum (when only pre-allocated nodes are used) of speed up for insertion and suppression . This improvment ...
- Nov 10, 2024 10:00
- Forum: Sources, Examples, Tips and Tricks
- Topic: Array of ulongints slower than array of unions with ulongint members
- Replies: 1
- Views: 753
Re: Array of ulongints slower than array of unions with ulongint members
Can you provide a short code highlighting the difference in execution time?
- Nov 09, 2024 20:27
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dynamic ArrayList (with circular doubly linked list under the hood)
- Replies: 103
- Views: 20191
Re: Dynamic ArrayList (with circular doubly linked list under the hood)
File to include "DynamicArrayList.bi" : Improvement of element access time (continuation) Improved management to memorize the 2 nodes most recently accessed by the user. On the same below usage example, the improvement is about 25% on element access (checking 100000 elements at randomly po...
- Nov 08, 2024 10:01
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dynamic ArrayList (with circular doubly linked list under the hood)
- Replies: 103
- Views: 20191
Re: Dynamic ArrayList (with circular doubly linked list under the hood)
File to include "DynamicArrayList.bi" : Improvement of element access time Accessing an element of a linked list is the most penalized function because of its transversal access, node by node, from a known node position to the targeted node. - Present principle of accessing a node from the...
- Nov 03, 2024 13:24
- Forum: Community Discussion
- Topic: The class with Constructor function did not return a bug
- Replies: 5
- Views: 1210
Re: The class with Constructor function did not return a bug
'Return x' and 'Function= x' (when returning by value) do not treat the uninitialized instance in the same way, in order to optimize execution time depending on the case: When using 'Return' , the only executed 'Return x' directly calls the copy-constructor (on the uninitialized instance). When usi...
- Oct 29, 2024 9:57
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 306
- Views: 48069
Re: Freebasic 1.20.0 Development
Dim As String syspath = GetSystemPath(CSIDL_SYSTEM) Dim As String windir = GetSystemPath(CSIDL_WINDOWS) Print syspath Print windir Print windir & "notepad.exe "& syspath & "drivers\etc\hosts" the code works well to output the hosts file path with fb 1.10.1 but & ...
- Oct 22, 2024 14:01
- Forum: Windows
- Topic: Fast copy of all the bytes in a ubyte ptr to a string ??
- Replies: 22
- Views: 3115
Re: Fast copy of all the bytes in a ubyte ptr to a string ??
Indeed, when I still compile without optimization, but removing the '-exx' option, I only find a factor of about 10 instead of 25.