thirdparty/libgenerator/inc/gml/mat.hpp
mat(const T *data, bool columnMajor) {
		assert(data != nullptr);
		if (columnMajor) {
			for (int i = 0; i < C; ++i) {
				data_[i] = vec<T, R>(&data[i * R]);
			}
		} else {
			for (int i = 0; i < C; ++i) {
				for (int j = 0; j < R; ++j) {
					data_[i][j] = data[j * C + i];
				}
			}
		}
	}
/// Initialize from a c-array.
/// The array must have at least C*R components or behaviour is undefined.
/// If data is null assertion error will occur.
/// @param data Pointer to the first element.
/// @param columnMajor Are the components in the input in column major order
Initialize from a c-array.
The array must have at least C*R components or behaviour is undefined.
If data is null assertion error will occur.
Initialize from a c - array . The array must have at least C * R components or behaviour is undefined . If data is null assertion error will occur .
mat(const T *data, bool columnMajor) {
		assert(data != nullptr);
		if (columnMajor) {
			for (int i = 0; i < C; ++i) {
				data_[i] = vec<T, R>(&data[i * R]);
			}
		} else {
			for (int i = 0; i < C; ++i) {
				for (int j = 0; j < R; ++j) {
					data_[i][j] = data[j * C + i];
				}
			}
		}
	}
mat ( const T * data , bool columnMajor ) { assert ( data != nullptr ) ; if ( columnMajor ) { for ( int i = 0 ; i < C ; ++ i ) { data_ [ i ] = vec < T , R > ( & data [ i * R ] ) ; } } else { for ( int i = 0 ; i < C ; ++ i ) { for ( int j = 0 ; j < R ; ++ j ) { data_ [ i ] [ j ] = data [ j * C + i ] ; } } } }
Initialize from a c-array.
Initialize from a c - array .