Post

Replies

Boosts

Views

Activity

Float16 use
Trying to use Xcode 12.0.1 with macOS 10.15.7 to assign a Float16? Getting this error ... any help is appreciated. Thank you. Playground execution failed: error: NumbersPlayground.playground:11:9: error: cannot find type 'Float16' in scope let d : Float16 = 3.1415926535         ^~~
5
0
1.3k
Jan ’21
reading ldoor matrix and incomplete factorization?
I tried to read in the ldoor matrix and attempted the LLT factorization but it gives me: "parseLdoor[55178:5595352] Factored does not hold a completed matrix factorization. (lldb)" Because the ldoor matrix is large I have not been able to discover the issue. I am unsure if the matrix data was converted correctly via the SparseConvertFromCoordinate function. Otoh, I was able to use the same code to get the correct answers for the simple 4x4 example used in the Sparse Solver documentation. Any help would be appreciated. Here is my code ... without the ldoor matrix
2
0
1.1k
Apr ’22
MPSMatrixDescriptor warning
When I try to run my matrix multiplication I receive the following warning in iOS but not in macOS : 'init(dimensions:columns:rowBytes:dataType:)' was deprecated in iOS 11.0 How may I change my code to remove the iOS warning? Here is my line generating the warning: let mdesc = MPSMatrixDescriptor( dimensions: 2, columns: 2, rowBytes: rowbytes, dataType: MPSDataType.float16)
1
0
739
Feb ’22