14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
* file.
*/
#include <stdarg.h>
#import "OFObject.h"
/**
* \brief A class for storing and manipulating matrices of floats.
*/
@interface OFFloatMatrix: OFObject <OFCopying>
{
size_t rows, columns;
float *data;
|
>
>
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
* file.
*/
#include <stdarg.h>
#import "OFObject.h"
@class OFFloatVector;
/**
* \brief A class for storing and manipulating matrices of floats.
*/
@interface OFFloatMatrix: OFObject <OFCopying>
{
size_t rows, columns;
float *data;
|
166
167
168
169
170
171
172
173
|
*/
- (void)multiplyWithMatrix: (OFFloatMatrix*)matrix;
/**
* \brief Transposes the receiver.
*/
- (void)transpose;
@end
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
|
*/
- (void)multiplyWithMatrix: (OFFloatMatrix*)matrix;
/**
* \brief Transposes the receiver.
*/
- (void)transpose;
/**
* \brief Translates the nxn matrix of the receiver with an n-1 vector.
*
* \param vector The vector to translate with
*/
- (void)translateWithVector: (OFFloatVector*)vector;
/**
* \brief Scales the nxn matrix of the receiver with an n-1 vector.
*
* \param scale The vector to scale with
*/
- (void)scaleWithVector: (OFFloatVector*)vector;
@end
|